home *** CD-ROM | disk | FTP | other *** search
- Path: news.tuwien.ac.at!not-for-mail
- From: cmack@rainbow.studorg.tuwien.ac.at (Christoph Mack)
- Newsgroups: comp.lang.c
- Subject: shellscript to c
- Date: 5 Mar 1996 16:24:35 GMT
- Organization: Aktionsgemeinschaft TU Wien
- Message-ID: <4hhps3$cof@news.tuwien.ac.at>
- NNTP-Posting-Host: rainbow.studorg.tuwien.ac.at
- X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
-
- Hi!
-
- I am currently writing a compiler which will be able to translate
- bourne shell scripts to C. I hope that this will speed the scripts
- up a bit.
-
- The strategie is to do a fork and exec for each unix system call.
- One problem is output redirection. Does anyone know how to realize
- <sc1> | <sc2> in C where <sc1> and <sc2> are unix system calls?
-
- e.g.: ls -lsa | grep vmlinuz
- cat textfile.txt | grep "certain words"
-
- thanks in advance
-
- X-toph
- --
- \|/
- (o o)
- --oOOO--(_)--OOOo-------------------------------------------------------
- Christoph Rainer MACK
- Student at the TECHNICAL UNIVERSITY OF VIENNA
- mailto:e9225519@stud1.tuwien.ac.at
- http://rainbow.studorg.tuwien.ac.at/~cmack/
- .oooO They don't make no seatbelts in the minds, so I can't
- ( ) Oooo. fasten up for this life. (Suicidal Tendencies)
- ----\ (----( )--------------------------------------------------------
- \_) ) /
- (_/
-